import unittest
from htmltestreport import HTMLTestReport
from scripts.test01 import TestHomeAPI
import config
from scripts.test02 import TestGoodsAPI

# suite = unittest.defaultTestLoader.loadTestsFromTestCase(TestHomeAPI)
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestGoodsAPI))
suite.addTest(unittest.makeSuite(TestHomeAPI))
runner = HTMLTestReport(config.BASE_PATH + "/report/index.html",title="ego接口自动化报告")
runner.run(suite)